<%--
  Created by IntelliJ IDEA.
  User: fudada
  Date: 2021/1/25
  Time: 16:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

${pageContext.request.contextPath} <br>

<%--获取四大域对象中的值--%>
<% request.setAttribute("username","request"); %>
${username} <br>
${requestScope.username} <br>

<%--获取请求头数据--%>
${header["connection"]} <br>
${headerValues["connection"][0]} <br>

<%--获取请求参数数据--%>
${param.username} <br>
${paramValues.hobby[0]} <br>
${paramValues.hobby[1]} <br>


<%--全局配置参数--%>
${initParam.fudada} <br>

${cookie} <br>

${cookie.JSESSIONID.name} <br>
${cookie.JSESSIONID.value} <br>


</body>
</html>
